package com.feng.ioc.bean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public class Init_Destory2 implements InitializingBean, DisposableBean {

    public Init_Destory2() {
        System.out.println("Init_Destory2构建成功");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("Init_Destory2销毁成功");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("Init_Destory2初始化成功");
    }
}
